package com.itheima.health.service;

import com.itheima.health.pojo.Order;
import com.itheima.health.pojo.OrderSetting;

import java.util.Date;
import java.util.List;

/**
 * @author spt
 * @description 预约设置SERVICE
 * @date 2019/9/29
 **/
public interface OrderSettingService {

    void updateNumberByDate(Date orderDate, Integer number);

    List<OrderSetting>listOrderSettings(String date);



    /**
     * 根据预约日期查询是否做过预约设置
     * @param orderDate
     * @return
     */
    OrderSetting getOrderSettingByOrderDate(Date orderDate);

    /**
     * 更新预约设置的已预约人数
     * @param orderSetting
     */
    void updateReservationsById(OrderSetting orderSetting);
}
